#ifndef RFIDTHREAD_H
#define RFIDTHREAD_H

#include <QThread>
#include <QString>
#include "delegate.h"
#include "message.h"
#include "GClient.h"

class RFIDThread : public QThread
{
    Q_OBJECT
public:
    explicit RFIDThread(QObject *parent = nullptr);
    ~RFIDThread();

public:
    void stop();
protected:
    void run() override;
signals:
    void curNum(int bar, QString curtime, QString epc);
private:
    bool isrunning = true;
    GClient* gclient;
    MsgBaseStop stopMsg;
};

#endif // RFIDTHREAD_H
